#include<iostream>
#include<functional>
#include <sys/stat.h>
using namespace std;
void print(const string& str,int num){
    cout << str;
}
int main()
{
    struct stat st;
    std::string filename("./wwwroot/");
    int ret = stat(filename.c_str(), &st);
    if(ret<0)
        cout << "ret=-1" << endl;
    if(S_ISDIR(st.st_mode))
        cout << "is directory" << endl;
    else
        cout << "not" << endl;
    //func(10);
}